
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Entity;
using Data;
using Quadrem.ExceptionManagement;

namespace Business
{
	public class BLUsuario
	{
		public static void Nuevo(BEUsuario oBE)
		{
			try
			{
				DAUsuario.Insert(oBE);
			}
			catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
            }
		}

		public static void Actualizar(BEUsuario oBE)
		{
			try
			{
				DAUsuario.Update(oBE);
			}
			catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
            }
		}

		public static void Borrar(BEUsuario oBE)
		{
			try
			{
				DAUsuario.Delete(oBE);
			}
			catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
            }
		}

		public static DataTable ObtenerTodos()
		{
			DataTable dt = null;
			try
			{
				dt = DAUsuario.ObtenerTodos();
			}
			catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
            }
			return dt;
		}

		public static DataTable ObtenerUno(BEUsuario oBE)
		{
			DataTable dt = null;
			try
			{
				dt = DAUsuario.ObtenerUno(oBE);
			}
			catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
            }
			return dt;
		}
	}
}
      